package com.zhihuishu.micro.course.openapi.course.util;

public class StringUtils {
	public static int DEFAULT_BUFFER_SIZE = 1024;
	
	public static boolean isNotEmpty(String str) {
		return !isEmpty(str);
	}
	
	/**
	 * 判断字符串是否为空
	 * 
	 * @param str
	 * @return
	 */
	public static boolean isEmpty(String str) {
		return   null == str || str.length() == 0 || "".equals(str) || "null".equals(str) 
				|| str.matches("\\s*");
	}
}
